package net.huashitong.scheduling.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;

import net.huashitong.scheduling.dao.ProjectDao;
import net.huashitong.scheduling.entity.Project;
import net.huashitong.scheduling.filter.ProjectFilter;
@Service
public class ProjectService extends StringPKService<Project>{
	@Autowired
	private ProjectDao dao;
	@Override
	protected BaseDao<Project,String> getDao(){
		return dao;
	}
	 public List<Project> queryByConstructionAddress(ProjectFilter filter){
		 return dao.queryByConstructionAddress(filter);
	 }
	 public List<Project> queryByType(ProjectFilter filter){
		 return dao.queryByType(filter);
	 }
	 public List<Project> queryByLinkedLeadership(ProjectFilter filter){
		return dao.queryByLinkedLeadership(filter);
	 }
	 public List<Project> queryByProjectName(ProjectFilter filter){
		 return dao.queryByProjectName(filter);
	 }

	 public String getLastProjectDate(){
		return dao.getLastProjectDate();
	 }
	 public List<Project> queryByLinkedLeadershipName(ProjectFilter filter){
		 return dao.queryByLinkedLeadershipName(filter);
	 }
	
}
